package com.shuoyue.adven.entity;

import java.util.Objects;

import lombok.Data;

@Data
public class Adv {
    int id;
    String logo;
    String title;
    int type;
    String fontContent;//文本、

    int fontStyle;//": 2,//1：红底白字 2：蓝底白字 3：绿底黑字 4：黄底黑字
    String imgUrl;//":"",
    String videoUrl;//":""
    int playTimesAready;//已播放次数

    int playTimesTotal;//待播放总数
    int playTimesCircle = 1; //每次循环到播放次数
    long imgShowMills = 0; //图片单次驻留时间
    public static int TYPE_RICH_TEXT = 1;
    public static int TYPE_IMG = 2;
    public static int TYPE_VIDEO = 4;

    String textColor;
    String backGroundColor;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Adv adv = (Adv) o;
        return id == adv.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
